﻿using System;
using System.Collections.Generic;

namespace MyHomeworkWebAPi.Models.ef;

public partial class Order
{
    // 订单状态常量
    public const string STATUS_PENDING_PAYMENT = "待付款";
    public const string STATUS_COMPLETED = "已完成";
    public const string STATUS_CANCELLED = "已取消";
    public const string STATUS_PENDING_SHIPMENT = "待发货";
    public const string STATUS_IN_TRANSIT = "运输中";
    public const string STATUS_PENDING_RECEIPT = "待收货";
    public const string STATUS_RETURNING = "退货中";
    public const string STATUS_EXCHANGING = "换货中";
    public const string STATUS_REFUNDING = "退款中";
    public const string STATUS_PARTIAL_REFUND = "部分退款";
    public const string STATUS_REJECTED = "已拒收";
    public const string STATUS_AFTER_SALES = "售后处理中";
    public const string STATUS_FROZEN = "冻结";

    /// <summary>
    /// 订单ID
    /// </summary>
    public Guid OrderId { get; set; }

    /// <summary>
    /// 买家ID
    /// </summary>
    public Guid UserId { get; set; }

    /// <summary>
    /// 商品ID
    /// </summary>
    public Guid ProductId { get; set; }

    /// <summary>
    /// 状态（'待付款', '已完成', '已取消', '待发货', '运输中', '待收货', '退货中', '换货中', '退款中', '部分退款', '已拒收', '售后处理中', '冻结'）
    /// </summary>
    public string Status { get; set; } = null!;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    public virtual Product Product { get; set; } = null!;

    public virtual User User { get; set; } = null!;
}
